home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / tls / tls001a.1 / usr / lib / grafinfo / toshiba / plasma.xgi / plasma.xgi
Encoding:
Text File  |  1992-04-23  |  6.1 KB  |  238 lines

  1. /*
  2.  * @(#) plasma.xgi 1.1 91/09/30 
  3.  *
  4.  * Copyright (C) 1991 The Santa Cruz Operation, Inc.
  5.  *
  6.  * The information in this file is provided for the exclusive use of the
  7.  * licensees of The Santa Cruz Operation, Inc.  Such users have the right 
  8.  * to use, modify, and incorporate this code into other products for purposes 
  9.  * authorized by the license agreement provided they include this notice 
  10.  * and the associated copyright notice with any such product.  The 
  11.  * information in this file is provided "AS IS" without warranty.
  12.  * 
  13.  */
  14.  
  15. /* *********************************************************************** *
  16.  * TOSHIBA/PLASMA.XGI - XEGIA(tm) GrafInfo File for Toshiba Grid 1500 Laptop *
  17.  *                                                                         *
  18.  *        Copyright (c) 1989 Metagraphics Software Corporation             *
  19.  *      269 Mount Hermon Road, PO 66779, Scotts Valley, CA 95066           *
  20.  * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
  21.  *                                                                         *
  22.  *                    Toshiba.Plasma.CGA.640x400-2                         *
  23.  *                                                                         *
  24.  * *********************************************************************** */
  25.  
  26.  
  27. VENDOR TOSHIBA    "Toshiba"
  28.  MODEL  Plasma     "Grid Plasma Display"
  29.   CLASS  CGA        "CGA"
  30.    MODE   640x400-2  "640x400 Monochrome"   /* Toshiba 640x400 2-color */
  31.  
  32.       MEMORY (0xb8000,0x08000);           /* Base Address, Length */
  33.       PORT   (0x3d4, 0x3d5, 0x3d8, 0x3d9, 0x3dd, 0x3de, 0x3df);
  34.       PORT   (0x6f8);
  35.  
  36.       PROCEDURE InitGraphics
  37.          {
  38.      XDRIVER = "mw";
  39.      VISUAL  = "StaticGrey";
  40.      DEPTH   = 1;
  41.          DEVTYPE     = 00;
  42.          DEVTECH     = 00;
  43.          PIXBYTES    = 80;
  44.          PIXWIDTH    = 640;
  45.          PIXHEIGHT   = 400;
  46.          PIXRESX     = 64;
  47.          PIXRESY     = 58;
  48.          PIXBITS     = 1;
  49.          PIXPLANES   = 1;
  50.          MAPTYPE     = "EGA";
  51.          BASEADDRESS = 0xb8000;
  52.          INTERLEAVE  = 4;
  53.          INTERSIZE   = 0x2000;
  54.          }
  55.  
  56.       PROCEDURE SetGraphics
  57.          {
  58.      out(0x3d8, 0x16);        /* High-Res Graphics mode */
  59.  
  60.      /* 6845 Registers */
  61.      r0  = 0x38;  r1  = 0x28;  r2  = 0x2d;  r3  = 0x0a;
  62.      r4  = 0x7f;  r5  = 0x06;  r6  = 0x64;  r7  = 0x70;
  63.      r8  = 0x02;  r9  = 0x01;  r10 = 0x06;  r11 = 0x07;
  64.      r12 = 0x00;  r13 = 0x00;  r14 = 0x00;  r15 = 0x00;
  65.      bout(16, 0x3d4, 0x3d5);
  66.  
  67.      out(0x6f8, 0);            /* subsystem select/ video system */
  68.      out(0x3df, 0xff);        /* Allow access to bank registers */
  69.      out(0x3dd, 0x3f);        /* Enable the controller */
  70.      out(0x3de, 0x81);
  71.  
  72.      /* Bank data */
  73.      /* Unfortunately, the index register we have to start
  74.         writing to is 0x20.  Currently the bout command
  75.         assumes that you want to start at 0.  So, we have
  76.         to do this the hard way.
  77.      */
  78.      out(0x3dd, 0x20);
  79.      out(0x3de, 0x00);
  80.      out(0x3dd, 0x21);
  81.      out(0x3de, 0x4f);
  82.      out(0x3dd, 0x22);
  83.      out(0x3de, 0x10);
  84.      out(0x3dd, 0x23);
  85.      out(0x3de, 0x81);
  86.      out(0x3dd, 0x24);
  87.      out(0x3de, 0xe2);
  88.      out(0x3dd, 0x25);
  89.      out(0x3de, 0xf5);
  90.      out(0x3dd, 0x26);
  91.      out(0x3de, 0x00);
  92.      out(0x3dd, 0x27);
  93.      out(0x3de, 0x0a);
  94.      out(0x3dd, 0x28);
  95.      out(0x3de, 0x11);
  96.      out(0x3dd, 0x29);
  97.      out(0x3de, 0x40);
  98.      out(0x3dd, 0x2a);
  99.      out(0x3de, 0x00);
  100.      out(0x3dd, 0x2b);
  101.      out(0x3de, 0x00);
  102.      out(0x3dd, 0x2c);
  103.      out(0x3de, 0x00);
  104.      out(0x3dd, 0x2d);
  105.      out(0x3de, 0x00);
  106.      out(0x3dd, 0x2e);
  107.      out(0x3de, 0x00);
  108.      out(0x3dd, 0x2f);
  109.      out(0x3de, 0x00);
  110.      out(0x3dd, 0x30);
  111.      out(0x3de, 0x53);
  112.      out(0x3dd, 0x31);
  113.      out(0x3de, 0xf4);
  114.      out(0x3dd, 0x32);
  115.      out(0x3de, 0xfd);
  116.      out(0x3dd, 0x33);
  117.      out(0x3de, 0x0a);
  118.      out(0x3dd, 0x34);
  119.      out(0x3de, 0x19);
  120.      out(0x3dd, 0x35);
  121.      out(0x3de, 0x00);
  122.      out(0x3dd, 0x36);
  123.      out(0x3de, 0x07);
  124.      out(0x3dd, 0x37);
  125.      out(0x3de, 0x00);
  126.      out(0x3dd, 0x38);
  127.      out(0x3de, 0x29);
  128.      out(0x3dd, 0x39);
  129.      out(0x3de, 0xfa);
  130.      out(0x3dd, 0x3a);
  131.      out(0x3de, 0xf4);
  132.      out(0x3dd, 0x3b);
  133.      out(0x3de, 0x0a);
  134.      out(0x3dd, 0x3c);
  135.      out(0x3de, 0x67);
  136.      out(0x3dd, 0x3d);
  137.      out(0x3de, 0x01);
  138.      out(0x3dd, 0x3e);
  139.      out(0x3de, 0x03);
  140.      out(0x3dd, 0x3f);
  141.      out(0x3de, 0x07);
  142.  
  143.      out(0x3dd, 0x27);        /* Special Register */
  144.      out(0x3de, 0x0b);
  145.          }
  146.  
  147.  
  148.       PROCEDURE SetText
  149.          {
  150.      out(0x3df, 0xff);        /* Allow access to bank registers */
  151.      out(0x3dd, 0x3f);        /* Enable the controller */
  152.      out(0x3de, 0x81);
  153.  
  154.      /* Bank data */
  155.      out(0x3dd, 0x20);
  156.      out(0x3de, 0x00);
  157.      out(0x3dd, 0x21);
  158.      out(0x3de, 0x4f);
  159.      out(0x3dd, 0x22);
  160.      out(0x3de, 0x07);
  161.      out(0x3dd, 0x23);
  162.      out(0x3de, 0x9d);
  163.      out(0x3dd, 0x24);
  164.      out(0x3de, 0x02);
  165.      out(0x3dd, 0x25);
  166.      out(0x3de, 0xb0);
  167.      out(0x3dd, 0x26);
  168.      out(0x3de, 0x00);
  169.      out(0x3dd, 0x27);
  170.      out(0x3de, 0x0a);
  171.      out(0x3dd, 0x28);
  172.      out(0x3de, 0x11);
  173.      out(0x3dd, 0x29);
  174.      out(0x3de, 0x40);
  175.      out(0x3dd, 0x2a);
  176.      out(0x3de, 0x00);
  177.      out(0x3dd, 0x2b);
  178.      out(0x3de, 0x00);
  179.      out(0x3dd, 0x2c);
  180.      out(0x3de, 0x00);
  181.      out(0x3dd, 0x2d);
  182.      out(0x3de, 0x00);
  183.      out(0x3dd, 0x2e);
  184.      out(0x3de, 0x00);
  185.      out(0x3dd, 0x2f);
  186.      out(0x3de, 0x00);
  187.      out(0x3dd, 0x30);
  188.      out(0x3de, 0x71);
  189.      out(0x3dd, 0x31);
  190.      out(0x3de, 0xf6);
  191.      out(0x3dd, 0x32);
  192.      out(0x3de, 0xfc);
  193.      out(0x3dd, 0x33);
  194.      out(0x3de, 0x0a);
  195.      out(0x3dd, 0x34);
  196.      out(0x3de, 0x18);
  197.      out(0x3dd, 0x35);
  198.      out(0x3de, 0x00);
  199.      out(0x3dd, 0x36);
  200.      out(0x3de, 0x07);
  201.      out(0x3dd, 0x37);
  202.      out(0x3de, 0x00);
  203.      out(0x3dd, 0x38);
  204.      out(0x3de, 0x38);
  205.      out(0x3dd, 0x39);
  206.      out(0x3de, 0xfb);
  207.      out(0x3dd, 0x3a);
  208.      out(0x3de, 0xf3);
  209.      out(0x3dd, 0x3b);
  210.      out(0x3de, 0x0a);
  211.      out(0x3dd, 0x3c);
  212.      out(0x3de, 0x63);
  213.      out(0x3dd, 0x3d);
  214.      out(0x3de, 0x06);
  215.      out(0x3dd, 0x3e);
  216.      out(0x3de, 0x01);
  217.      out(0x3dd, 0x3f);
  218.      out(0x3de, 0x07);
  219.  
  220.      out(0x3dd, 0x27);    /* Special register */
  221.      out(0x3de, 0x0b);
  222.  
  223.      out(0x3d8, 0x01);
  224.      out(0x3d8, 0x21);
  225.      out(0x3d9, 0x30);
  226.  
  227.      /* crtc regs */
  228.          r0 = 0x71;     r1  = 0x50;     r2  = 0x5A;     r3  = 0x0A;
  229.          r4 = 0x19;     r5  = 0x06;     r6  = 0x19;     r7  = 0x19;
  230.          r8 = 0x02;     r9  = 0x0D;     r10 = 0x0B;     r11 = 0x0C;
  231.          r12= 0x00;     r13 = 0x00;     r14 = 0x00;     r15 = 0x00;
  232.          bout(16, 0x3d4, 0x3d5);
  233.  
  234.          out(0x3d8, 0x29);               /* mode - enable page 0 */
  235.          }
  236.  
  237. /* End of File - TOSHIBA/PLASMA.XGI */
  238.